package cn.thornbird.orgsync.model.netease;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UnitList extends Response {

    @JsonProperty("data")
    private List<UnitItem> data;


    @Data
    public static class UnitItem {

        @JsonProperty("unitId")
        private String unitId;

        @JsonProperty("unitName")
        private String unitName;

        @JsonProperty("unitOpenId")
        private String unitOpenId;

        @JsonProperty("unitParentId")
        private String unitParentId;

        @JsonProperty("rank")
        private Long rank;

    }

}
